import axios from '@/libs/request/axios'
// 获取凭证事件信息数据多条件
export const getVoucherEventsList = (params) => {
    return axios.request({
        url: '/contractAccount/voucherEvents/list',
        data: params,
        method: 'post'
    })
}
// 保存凭证事件信息
export const  addVoucherEvents= (params) => {
    return axios.request({
        url: '/contractAccount/voucherEvents/addVoucherEvents',
        data: params,
        method: 'post'
    })
}// 修改凭证事件信息
export const  modifyVoucherEvents= (params) => {
    return axios.request({
        url: '/contractAccount/voucherEvents/modifyVoucherEvents',
        data: params,
        method: 'post'
    })
}
// 删除凭证事件信息
export const delVoucherEvents = (id,params) => {
        return axios.request({
            url: `/contractAccount/voucherEvents/delVoucherEvents/${id}`,
            data: params,
            method: 'DELETE'
        })
    }
// 获取凭证事件信息
export const getVoucherInfo = (id,params) => {
    return axios.request({
        url: `/contractAccount/voucherEvents/getVoucherInfo/${id}`,
        data: params,
        method: 'post'
    })
}
// 设置生效
export const active = (id,params) => {
    return axios.request({
        url: `/contractAccount/voucherEvents/active/${id}`,
        data: params,
        method: 'post'
    })
}

// 设置无效
export const invalidity = (id,params) => {
    return axios.request({
        url: `/contractAccount/voucherEvents/invalidity/${id}`,
        data: params,
        method: 'post'
    })
}
